package com.session01;

public class BankDemo {
    public static void main(String[] args) {
        Account account = new Account();
        account.depsoit(100);
        try {
            account.withdraw(600);
        } catch (BankException e) {
            System.out.println(e.getMsg() + " 你的账号还差 " + e.getAmount());
        }
    }
}
